<style tyle="text/css">
  .modal-lg {
      width: 60%;
  }
  .font_red {
    color: #f00;
  }
  .mt20 {
    margin-top: 20px;
  }
  .mr20 {
    margin-left: 20px;
  }
  .loading {
    height: 200px;
    margin-top: 100px;
  }
</style>
<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">{{iteminfo.text}}</h1>
</div>
<div class="panel panel-default">
  <!-- 网速太慢,画圈等 -->
  <h3 class="text-center loading" ng-if="formdate.loading">
    <i class="fa fa-spin fa-spinner hide show inline"></i> 努力加载中...
  </h3>
  <div ng-if="!formdate.loading">
    <form name="form" class="form-horizontal" ng-if="!flag">
      <div class="form-group">
        <h4 class="col-lg-3 control-label">受理地点：</h4>
        <h4 class="col-lg-8 control-label text-left">{{iteminfo.ACCEPT_ADDRESS}}</h4>
      </div>
      <div class="form-group">
        <h4 class="col-lg-3 control-label">受理时间：</h4>
        <h4 class="col-lg-8 control-label text-left">{{iteminfo.ACCEPT_TIME}}</h4>
      </div>
      <div class="form-group">
        <h4 class="col-lg-3 control-label">受理条件：</h4>
        <h4 class="col-lg-8 control-label text-left">{{iteminfo.APPLY_CONDITION}}</h4>
      </div>
      <div class="form-group">
        <h4 class="col-lg-3 control-label">所需要件：</h4>
        <h4 class="col-lg-8 control-label text-left">
          <p ng-repeat="item in iteminfo.documentlist">
            {{($index+1)}}. {{item.name}}
          </p>
        </h4>
      </div>
      <div class="form-group">
        <h4 class="col-lg-3 control-label">补充说明：</h4>
        <h4 class="col-lg-8 control-label text-left">{{iteminfo.SXSM}}</h4>
      </div>
      <div class="form-group">
        <div class="text-center">
          <img ng-src={{iteminfo.FILEPATH}} width="700px" height="650px">
        </div>
      </div>
      <div class="form-group">
        <button class="col-lg-3 col-lg-offset-4 btn btn-success" type="button" ng-click="apply()">确 认 办 理</button>
      </div>
    </form>
    <form name="form1" class="form-horizontal mt20" ng-if="flag">
      <div ng-repeat="obj in iteminfo.documentlist">
        <div class="form-group" ng-if="obj.write_type!='form'">
          <div class="col-lg-3 control-label">{{obj.name}}</div>
          <div class="col-lg-5">
            <img ng-src="{{obj.value1}}" width="300" height="200" ng-model="obj.value1">
            <input type="file" nv-file-select uploader="obj.uploader1"/>
            <ul class="list-group">
              <li class="list-group-item" ng-repeat="item in obj.uploader1.queue">
                文件名: <span ng-bind="item.file.name"></span>
                <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
                <div class="progress mt10">
                  <div class="progress-bar" role="progressbar" ng-style="{ 'width': obj.uploader1.progress + '%' }"></div>
                </div>
              </li>
            </ul>
          </div>
          <div class="col-lg-4 control-label text-left font_red">
            <i>{{obj.remark}}</i>
          </div>
        </div>
        <div ng-if="obj.write_type=='form'">
          <div class="form-group" ng-repeat="obj2 in obj.param">
            <div class="col-lg-3 control-label">{{obj2.name}}</div>
            <div class="col-lg-5" ng-if="obj2.write_type=='words'">
              <input type="text" class="form-control" ng-model="obj2.value1">
            </div>
            <div class="col-lg-5" ng-if="obj2.write_type=='textarea'">
              <textarea class="form-control" rows="3" ng-model="obj2.value1"></textarea>
            </div>
            <div class="col-lg-5" ng-if="obj2.write_type=='select'">
              <ui-select ng-model="obj2.value1" theme="bootstrap" ng-change="change(obj2,obj)">
                <ui-select-match placeholder="选择...">{{$select.selected.name}}</ui-select-match>
                <ui-select-choices repeat="sel1.id as sel1 in obj2.select | filter: $select.search">
                  <span ng-bind-html="sel1.name | highlight: $select.search"></span>
                </ui-select-choices>
              </ui-select>
            </div>
          </div>
        </div>
      </div>
      <div class="form-group">
        <button class="col-lg-2 col-lg-offset-3 btn btn-success" type="button" ng-click="ok()">确 定</button>
        <button class="col-lg-2 mr20 btn btn-danger" type="button" ng-click="back()">返 回</button>
      </div>
    </form>
  </div>

</div>